package tech.$2306.comment.enumeration;

import lombok.Data;

/**
 * 返回码枚举
 * @author wangleishu
 */
public enum RespCodeEnum {
    /**
     * 业务正常
     */
    OK(200,"操作成功"),

    /**
     * 业务异常
     */
    ERROR(500,"系统异常");

    /**
     * 返回码
     */
    public Integer code;

    /**
     * 返回码说明
     */
    public String desc;

     RespCodeEnum(Integer code,String desc) {
        this.code = code;
        this.desc = desc;
    }

}
